package com.yyp.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yyp.bean.DeliveryInfo;
import com.yyp.dao.DeliveryInfoDao;
import com.yyp.service.DeliveryInfoService;

@Service
public class DeliveryInfoServiceImpl implements DeliveryInfoService {
	@Resource
	DeliveryInfoDao deliveryInfoImpl;

	//
	// public void del(String names) {

	// DeliveryInfoImpl.delete(names);
	// }

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.DeliveryInfoService#del(int)
	 */
	public void del(int id) {

		deliveryInfoImpl.delete(id);
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.DeliveryInfoService#find(java.lang.Integer)
	 */
//	public DeliveryInfo find(Integer id) {
//		return deliveryInfoImpl.find(id);
//	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.DeliveryInfoService#find(java.lang.String)
	 */
	public DeliveryInfo find(String name) {
		return deliveryInfoImpl.find(name);

	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.DeliveryInfoService#findAll()
	 */
	public List<DeliveryInfo> findAll() {
		return deliveryInfoImpl.findAll();
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.DeliveryInfoService#save(com.yyp.bean.DeliveryInfo)
	 */
	public void save(DeliveryInfo entity) {
		deliveryInfoImpl.save(entity);
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.DeliveryInfoService#updata(com.yyp.bean.DeliveryInfo)
	 */
	public void updata(DeliveryInfo entity) {
		deliveryInfoImpl.updata(entity);
	}

}
